package com.prik.decorator.condiment;

import com.prik.decorator.coffee.Beverage;

/**
 * @description: 榛子
 * @author: prik
 * @create: 2019-07-24
 **/
public class Hazelnut extends CondimentDecorator {

    Beverage beverage;

    public Hazelnut(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + ", 榛子";
    }

    @Override
    public double cost() {
        return 5 + beverage.cost();
    }
}